﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="post.aspx.cs" Inherits="admin_Post" MasterPageFile="~/admin/Admin.master" ValidateRequest="false" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="body">
<div id="post-options">
<fieldset id="post-category">
	<legend>Category</legend>
	<asp:DropDownList ID="postCategory" runat="server" DataTextField="Name" DataValueField="Name" />
</fieldset>
<fieldset id="post-discussion">
	<legend>Discussion</legend>
	<asp:CheckBox ID="postAllowComments" runat="server" Text="Allow Comments" Checked="true" /><br />
	<asp:CheckBox ID="postAllowPingbacks" runat="server" Text="Allow Pingbacks" Checked="true" />
</fieldset>
<fieldset id="post-slug">
	<legend>Post Slug</legend>
	<asp:TextBox ID="postSlug" runat="server" />
</fieldset>
<fieldset id="post-status">
	<legend>Post Status</legend>
	<asp:RadioButtonList ID="postStatusList" runat="server">
		<asp:ListItem Value="published">Published</asp:ListItem>
		<asp:ListItem Value="pending">Pending Review</asp:ListItem>
		<asp:ListItem Selected="True" Value="draft">Draft</asp:ListItem>
		<asp:ListItem Value="private">Private</asp:ListItem>
	</asp:RadioButtonList>
</fieldset>
<fieldset id="post-timestamp">
	<legend>Post Timestamp</legend>
	<asp:DropDownList ID="timestampMonth" runat="server">
		<asp:ListItem value="1">January</asp:ListItem>
		<asp:ListItem value="2">February</asp:ListItem>
		<asp:ListItem value="3">March</asp:ListItem>
		<asp:ListItem value="4">April</asp:ListItem>
		<asp:ListItem value="5">May</asp:ListItem>
		<asp:ListItem value="6">June</asp:ListItem>
		<asp:ListItem value="7">July</asp:ListItem>
		<asp:ListItem value="8">August</asp:ListItem>
		<asp:ListItem value="9">September</asp:ListItem>
		<asp:ListItem value="10">October</asp:ListItem>
		<asp:ListItem value="11">November</asp:ListItem>
		<asp:ListItem value="12">December</asp:ListItem>
	</asp:DropDownList>
	<asp:TextBox ID="timestampDay" runat="server" MaxLength="2" size="2" /><asp:TextBox ID="timestampYear" runat="server" MaxLength="4" size="4" />@<asp:TextBox ID="timestampHour" runat="server" MaxLength="2" size="2" />:<asp:TextBox ID="timestampMinute" runat="server" MaxLength="2" size="2" />
</fieldset>
<fieldset id="post-author">
	<legend>Post Author</legend>
	<asp:DropDownList ID="postAuthor" runat="server" DataTextField="UserName" DataValueField="UserName" />
</fieldset>
</div>
<div id="post">
<fieldset id="post-title">
	<legend>Title</legend>
	<asp:TextBox ID="postTitle" runat="server" />
</fieldset>
<fieldset id="post-content">
	<legend>Post</legend>
	<blog:TextEditor id="postContent" runat="server" />
</fieldset>
<fieldset id="post-tags">
	<legend>Tags (separate multiple tags with semi-colons: cats; pet food; dogs)</legend>
	<asp:TextBox ID="postTags" runat="server" />
</fieldset>
<p class="submit">
	<asp:Button ID="saveAndContinueButton" runat="server" Text="Save and Continue" onclick="saveAndContinueButton_Click" />
	<asp:Button ID="saveButton" runat="server" Text="Save" onclick="saveButton_Click" />
	<asp:Button ID="publishButton" runat="server" Text="Publish" onclick="publishButton_Click" /><br />
</p>
<iframe id="post-attachments" src="upload-attachments.aspx" frameborder="0"></iframe>
<fieldset id="post-excerpt">
	<legend>Optional Excerpt</legend>
	<asp:TextBox id="postExcerpt" runat="server" TextMode="MultiLine" />
</fieldset>
<fieldset id="post-trackbacks">
	<legend>Trackback</legend>
	<asp:TextBox id="postTrackback" runat="server" />
	<asp:RegularExpressionValidator ID="trackbackUrlValidator" runat="server" 
		ControlToValidate="postTrackback" Display="Dynamic" 
		ErrorMessage="Please enter a valid URL for the trackback." 
		ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" />
</fieldset>
<fieldset>
	<legend>Announced To</legend>
	<asp:Repeater ID="pingbackList" runat="server">
		<HeaderTemplate><ol></HeaderTemplate>
		<ItemTemplate><li><%# Container.DataItem as string %></li></ItemTemplate>
		<FooterTemplate></ol></FooterTemplate>
	</asp:Repeater>
</fieldset>
</div>
</asp:Content>
